@extends('admin.layout')
@section('content')
<div class="panel panel-default">
    <div id="notice">
    </div>
    <div class="panel-heading" style="height: auto;">
        <ol class="breadcrumb">
            <li>栏目管理</li>
            <li class="active">栏目列表</li>
        </ol>
    </div>
    <div class="panel-body">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>栏目名称</th>
                        <th>栏目logo</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach($columns as $k=>$v)
                    <tr>
                        <td>{{$v['id']}}</td>
                        <td>{{$v['title']}}</td>
                        <td><img src="{{$v['logo']}}" width="50" alt=""></td>
                        <td>
                        	<a href="/admin/column/{{$v['id']}}/edit" class="btn btn-info btn-xs col-md-6">编辑</a>
                            <form action="/admin/column/{{$v['id']}}" method="post">
                                <input type="hidden" name="id" value="{{$v['id']}}">
                                <input type="hidden" name="_method" value="delete">
                                {{csrf_field()}}
                                <button class="btn btn-danger btn-xs col-md-6 userDelete">删除</button>
                            </form>
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
@endsection